{% extends 'base.html' %}
{% block title %}Transparency through volunteering{% endblock %}

{% block content %}
<div class="span-5">
<h2>Thanks for signing up to help out in your constituency, {{ user.display_name }}</h2> 

<h3>Available tasks</h3>
{% if not user.is_active %}
   You need to activate your account to receive tasks. Please check your inbox (and your spam folder) for a confirmation email.
{% else %}
   {% with user.taskuser_set.all as usertasks %}
   {% include "tasks/task_list.html" %}
   {% endwith %}
{% endif %}

<h3>Recent activity near you</h3>
{% if activity %}
<ul>
{% for item in activity %}
    <li><a href='{{ item.user.get_absolute_url }}'>{{ item.user }}</a> ({{ item.user.constituencies.get.name }}) doing <a href='{{ item.task.get_absolute_url }}'>{{ item.task }}</a>, {{ item.state_string }} <span class="quiet" style="font-size:0.7em">{{ item.date_modified.date }}</span></li>
{% endfor %}
{% else %}
</ul>
There has been no activity near you - be the first, do a task! Maybe you need to <a href='{% url inviteindex %}'>invite some friends</a>.
{% endif %}

<!--<h3>What now?</h3>
<p>Apart from helping with available tasks, before we can really start making a difference we need to try to get <atrong>at least one volunteer in every constituency</strong> in the United Kingdom.</p>
<p>Please think if you can <a href="{% url inviteindex %}">invite some friends</a> who might be interested, or consider <a href="{% url add_constituency %}">volunteering to help in other places</a> (e.g. somewhere you're studying, or somewhere else nearby)</p>

<p>In time, we'll begin to send you occasional emails, asking if you can help with certain tasks. The first major task will be gathering information about candidates who are standing in the next election in your constituency. <a href="/aboutus/">Read about our purpose and what we're planning</a>.-->
</div>

<div class="span-3  last">
 <img src="/media/images/heatmap.png" width="300" />
<p class="quiet">We're trying to get volunteers in every part of the UK.  So far, we've recruited {{ volunteers }} volunteers in {{ count }} constituencies (out of a total {{ total }}).  On this map, the redder the constituency, the more volunteers we have there. <a href="/statistics/">Read more about how we're doing.</a></p>

</div>

{% endblock %}


